(Ahsaab) 33 : 21
لَقَدْ كَانَ لَكُمْ فِي رَسُولِ اللَّهِ أُسْوَةٌ حَسَنَةٌ لِمَنْ كَانَ يَرْجُو اللَّهَ وَالْيَوْمَ الْآخِرَ وَذَكَرَ اللَّهَ كَثِيرًا

Surely, in Messenger of Allah you have the best example for those who hope Allah and Hereafter, and who remember Allah much.

During the Khandakh war (the war of Confederates), Messenger stood firmly without affecting any fear or horror with the consciousness that everything was under the control of the Lord of the world. That is the example mentioned in the verse. See the explanation 6: 20; 9: 40, 51; 60: 4-6.